package com.googlecode.cannedbeans.generator.util;

/**
 *
 * @author Kim
 */
public final class ClassFactory {

    /**
     * We need a public constructor for Spring.
     */
    public ClassFactory() { }

    /**
     * Returns the Class for a given name.
     * Should not be static, since it is used by spring as a factory method, 
     * which doesn't work with static methods.
     * @param name Name of the class
     * @return the Class, if found
     * @throws java.lang.ClassNotFoundException if the class could not be found
     */
    public Class getClass(final String name)
            throws ClassNotFoundException {
        return Class.forName(name);
    }
}
